package jnicreator.handlers;

import java.io.BufferedReader;

import org.eclipse.jface.dialogs.MessageDialog;
import org.eclipse.swt.widgets.Display;

class CzStreamOutput {
	public BufferedReader br;

	public CzStreamOutput() {
	}

	public CzStreamOutput(BufferedReader br) {
		this.br = br;
	}

	public void run() {
		String line;
		try {
			while ((line = br.readLine()) != null) {
				System.out.println(line);
				MessageDialog.openInformation(Display.getDefault().getActiveShell(), "", line);
			}
		} catch (Exception e) {
			e.printStackTrace();
		}
	}
}